package com.zyf.customer.controller;

import com.zyf.service.api.DubboTestService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Reference
    private DubboTestService dubboTestService;

    @GetMapping("testDubbo")
    @ResponseBody
    public String test1(){
        String test = dubboTestService.test();
        return test;
    }
}
